.class Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;
.super Landroid/os/AsyncTask;
.source "PreferencesActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/noshufou/android/su/preferences/PreferencesActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "ClearLog"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/os/AsyncTask",
        "<",
        "Ljava/lang/Void;",
        "Ljava/lang/Void;",
        "Ljava/lang/Integer;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;


# direct methods
.method private constructor <init>(Lcom/noshufou/android/su/preferences/PreferencesActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 376
    iput-object p1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/noshufou/android/su/preferences/PreferencesActivity;Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 376
    invoke-direct {p0, p1}, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;-><init>(Lcom/noshufou/android/su/preferences/PreferencesActivity;)V

    return-void
.end method


# virtual methods
.method protected varargs doInBackground([Ljava/lang/Void;)Ljava/lang/Integer;
    .locals 3
    .parameter "params"

    .prologue
    const/4 v2, 0x0

    .line 387
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    invoke-virtual {v0}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    sget-object v1, Lcom/noshufou/android/su/provider/PermissionsProvider$Logs;->CONTENT_URI:Landroid/net/Uri;

    invoke-virtual {v0, v1, v2, v2}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    return-object v0
.end method

.method protected bridge varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 1
    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->doInBackground([Ljava/lang/Void;)Ljava/lang/Integer;

    move-result-object v0

    return-object v0
.end method

.method protected onPostExecute(Ljava/lang/Integer;)V
    .locals 6
    .parameter "result"

    .prologue
    const/4 v4, 0x1

    const/4 v5, 0x0

    .line 392
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    #getter for: Lcom/noshufou/android/su/preferences/PreferencesActivity;->mClearLog:Landroid/preference/Preference;
    invoke-static {v0}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->access$3(Lcom/noshufou/android/su/preferences/PreferencesActivity;)Landroid/preference/Preference;

    move-result-object v0

    const v1, 0x7f0b0062

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setTitle(I)V

    .line 393
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    #getter for: Lcom/noshufou/android/su/preferences/PreferencesActivity;->mClearLog:Landroid/preference/Preference;
    invoke-static {v0}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->access$3(Lcom/noshufou/android/su/preferences/PreferencesActivity;)Landroid/preference/Preference;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 394
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    #getter for: Lcom/noshufou/android/su/preferences/PreferencesActivity;->mClearLog:Landroid/preference/Preference;
    invoke-static {v0}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->access$3(Lcom/noshufou/android/su/preferences/PreferencesActivity;)Landroid/preference/Preference;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/preference/Preference;->setEnabled(Z)V

    .line 395
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    #getter for: Lcom/noshufou/android/su/preferences/PreferencesActivity;->mContext:Landroid/content/Context;
    invoke-static {v0}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->access$1(Lcom/noshufou/android/su/preferences/PreferencesActivity;)Landroid/content/Context;

    move-result-object v0

    .line 396
    iget-object v1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    invoke-virtual {v1}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0c0001

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v3

    new-array v4, v4, [Ljava/lang/Object;

    aput-object p1, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    .line 395
    invoke-static {v0, v1, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    .line 397
    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 398
    return-void
.end method

.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    check-cast p1, Ljava/lang/Integer;

    invoke-virtual {p0, p1}, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->onPostExecute(Ljava/lang/Integer;)V

    return-void
.end method

.method protected onPreExecute()V
    .locals 2

    .prologue
    .line 380
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    #getter for: Lcom/noshufou/android/su/preferences/PreferencesActivity;->mClearLog:Landroid/preference/Preference;
    invoke-static {v0}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->access$3(Lcom/noshufou/android/su/preferences/PreferencesActivity;)Landroid/preference/Preference;

    move-result-object v0

    const v1, 0x7f0b0063

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setTitle(I)V

    .line 381
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    #getter for: Lcom/noshufou/android/su/preferences/PreferencesActivity;->mClearLog:Landroid/preference/Preference;
    invoke-static {v0}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->access$3(Lcom/noshufou/android/su/preferences/PreferencesActivity;)Landroid/preference/Preference;

    move-result-object v0

    const v1, 0x7f0b0064

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setSummary(I)V

    .line 382
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$ClearLog;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    #getter for: Lcom/noshufou/android/su/preferences/PreferencesActivity;->mClearLog:Landroid/preference/Preference;
    invoke-static {v0}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->access$3(Lcom/noshufou/android/su/preferences/PreferencesActivity;)Landroid/preference/Preference;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setEnabled(Z)V

    .line 383
    return-void
.end method
